package cn.cai.pethome.system.service;

import cn.cai.pethome.base.util.AjaxResult;
import cn.cai.pethome.system.domain.Role;
import cn.cai.pethome.base.service.IBaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaocai
 * @since 2022-09-05
 */
public interface IRoleService extends IBaseService<Role> {

    /**
     * 前端返回的权限ids组装成树形结构(二维数组)
     * @param permissionIds
     * @return
     */
    List<List<Long>> getPermissionTreeByRoleid(List<Long> permissionIds);

}
